package com.my.hzb.order.service;

import java.util.List;

import com.framelib.utils.Page;
import com.my.hzb.common.bean.ResultBean;
import com.my.hzb.entiy.Orders;


public interface OrderService {

	ResultBean testOrder(Integer proId,Integer adsId);
	
	int countByExample(Orders order);
    Double countPrice(Orders order);
    
	void add(Orders order);
	void update(Orders order);
	void delete(Orders order);
	boolean updateStock(Integer proId,Integer type,Integer stock);
	Orders getOne(Integer id);
	List<Orders> find(Orders order,Page page);
	ResultBean initOrderInfo(String userName,Integer proId);
	
	//项目的
	ResultBean subOrder(String userName,Integer adsId,Integer productId
			,Double orderPrice,Integer orderNumber);
	ResultBean payOrder();
}
